package com.wswy.wyjk.utils;

import com.my.httpapi.api.baseUtils.Toast;

public class ActivityUtils {
    private static final int TIME_EXIT = 2000;
    private static long mBackPressed;

    public static boolean isExit() {
        if (mBackPressed + TIME_EXIT > System.currentTimeMillis()) {
            mBackPressed = 0;
            return true;
        }
        Toast.show("再点击一次返回退出程序");
        mBackPressed = System.currentTimeMillis();
        return false;
    }
}
